function setStorage(key, data, callback) {
	if(callback){
		uni.setStorage({
			key:key,
			data:JSON.stringify(data),
			callback
		})
	}else{
		uni.setStorageSync(key,data);
	}
}
function getStorage(key, callback) {
	if(callback){
		uni.getStorage({
			key: key,
			success(res) {
				callback(JSON.parse(res));
			}
		})
	}else{
		return uni.getStorageSync(key);
	}
}
function removeStorage(key, callback) {
	if(callback) {
		uni.removeStorage({
			key: key,
			callback
		})
	}else{
		uni.removeStorageSync(key)
	}
}
export {setStorage, getStorage, removeStorage};